package com.bm.mapper;

import com.bm.Do.owner.*;
import com.bm.model.EjyyOwnerApply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bm.query.Common.InfoQuery;
import com.bm.query.owner.OwnerApplyListQuery;
import com.bm.query.owner.OwnerApproveQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @Entity com.bm.model.EjyyOwnerApply
*/
@Mapper
public interface EjyyOwnerApplyMapper extends BaseMapper<EjyyOwnerApply> {


    List<OwnerApplyListDo> selectPageList(OwnerApplyListQuery ownerApplyListQuery);

    /**
     * 根据ids 查询id
     * @param buildingIds
     * @return
     */
    List<Long> selectIdOnOwner(List<Long> buildingIds);

    /**
     * 根据条件查询绑定的信息
     * @param communityId
     * @param wechatMpUserId
     * @param ids
     * @return
     */
    List<OwnerApplyReplyDo> selectBuildings(Long communityId, Long wechatMpUserId, List<Long> ids);

    List<Long> selectInfoByIds(OwnerApproveQuery ownerApproveQuery);

    /**
     * 根据id查询信息
     * @param id
     * @return
     */
    OwnerInfoDo selectInfo(Long id);


    List<OwnerBuildingsDo>  selectbuildings(InfoQuery infoQuery);


    List<OwnerCarsDo> selectUserCars(Long id, List<Long> buildings);

    OwnerApplyDetailInfoDo selectOwnerApplyInfo(InfoQuery infoQuery);

    List<OwnerApplyDetailBuildingDo> selectOwnerApplyBuildings(Long wechatMpUserId, String content, Long communityId);

//    List<OwnerApplyDetailBuildingDo> selectOwnerApplyBuildings(OwnerApplyDetailInfoDo info, Long communityId);
}
